﻿<%@ Page Title="Facilidades" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Facilidades.aspx.cs" Inherits="HotelBrisayArena.Facilidades" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
      <%int i = 2;
       Business.SeccionBusiness seccionBusiness = new Business.SeccionBusiness(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ApplicationServices"].ToString());
       Business.ImagenBusiness imagenBusiness = new Business.ImagenBusiness(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ApplicationServices"].ToString());   
       LinkedList<Domain.Seccion> secciones= new LinkedList<Domain.Seccion>();
       secciones = seccionBusiness.GetSecciones(3);
          
       foreach (Domain.Seccion seccionActual in secciones)
       {
           Domain.Imagen imagen = new Domain.Imagen();
           imagen= imagenBusiness.GetImagen(seccionActual.IdImagen);
           byte[] imageBytes = imagen.Image;
           string base64ImageString = ConvertBytesToBase64(imageBytes);
           Imagen1.Src = "data:image/jpg;base64," + base64ImageString;
           Label1.Text = seccionActual.Descripcion;
           i++; %>
    <table >
        <tr>
            <td>
                <img id="Imagen1" runat="server" src="" alt="" height="110" width="190" onclick="" />
            </td>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>
    
    <%}%>
      <br />
</asp:Content>
